package com.mgs.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mgs.admin.api.dto.UserDTO;
import com.mgs.admin.api.dto.UserInfo;
import com.mgs.admin.api.entity.User;

/**
 * @ClassName UserService
 * @Description TODO
 * @Author zhanglei
 * @Date 2021/12/16 16:51
 * @Version 1.0
 */
public interface UserService extends IService<User> {


    /**
     * @param user
     * @return UserInfo
     * @Description // 获取用户信息
     * @Author zhanglei
     * @Date 2021/12/16 16:56
     */
    UserInfo getUserInfo(User user);

    /**
     * @param page
     * @param userDTO
     * @return IPage
     * @Description // 分页查询用户
     * @Author zhanglei
     * @Date 2021/12/16 16:56
     */
    IPage getUserPage(Page page, UserDTO userDTO);


}
